package com.candy.th4;
/**
 * @author donglin
 * @Title:
 * @类名: Test01
 * @date 2020/7/22
 */
public class Test01 {
    public static void main(String[] args) {
        //实例化银行账户对象
        Bank bk=new Bank();
        //实例化三个客户
        Client c1=new Client("tom",bk,7);
        Client c2=new Client("lily",bk,17);
        Client c3=new Client("小明",bk,21);
        Client1 c4=new Client1("小红",bk);
        Client1 c5=new Client1("tony",bk);
        //线程调用
        c1.start();
        c2.start();
        c3.start();
        c4.start();
        c5.start();






    }





}
